using System;


namespace Commons.Models.Settings.Matchers.Operators.Relational
{
	[Serializable]
	public class GreaterEqualOperator<T> : GreaterThanOperator<T>
	{
		public override OperatorType Type
		{
			get
			{
				return OperatorType.Ge;
			}
		}

		public override bool Operate(T v1, T v2)
		{
			if (v1 == null)
			{
				return false;
			}
			return GetMaxValue(v1) >= GetMaxValue(v2);
		}
	}
}

